Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: unified trade events #910

Draft
wants to merge 61 commits into
base: master
Choose a base branch
from
Draft

feat: unified trade events #910

wants to merge 61 commits into from

Conversation

Roznovjak
Copy link
Contributor

@Roznovjak Roznovjak commented Sep 20, 2024

Fixes #755

TODO:

  • We need to fork utility pallet to support unified events
  • Use stack in deposit trade event.

@Roznovjak Roznovjak self-assigned this Sep 20, 2024
pallets/lbp/src/lib.rs Outdated Show resolved Hide resolved
pallets/lbp/src/lib.rs Outdated Show resolved Hide resolved
@enthusiastmartin
Copy link
Contributor

what if we call the new pallet something more generic ... eg. amm-support.

it might be useful for other things, not only one specific trade event.

Comment on lines 58 to 59
who: T::AccountId,
pool: PoolType<AssetId>,
Copy link
Contributor

@enthusiastmartin enthusiastmartin Sep 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after discussion with @jak-pan , we suggest:

Suggested change
who: T::AccountId,
pool: PoolType<AssetId>,
swapper: T::AccountId,
filler: T::AccountId, // ICE acc, Omnipool acc, stablepool acc, xyk account etc..
type: FillerType,
enum FillerType {
    Omnipool,
    Stableswap,
    XYK,
    LBP,
    OTC,
    ICE,
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who is filler in OTC?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type is a keyword, cannot be used

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who is filler in OTC?

the one filling order

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it the one who owns the order?

Copy link

github-actions bot commented Sep 25, 2024

Crate versions that have not been updated:

  • runtime-integration-tests: v1.25.1
  • pallet-circuit-breaker: v1.1.26
  • pallet-dca: v1.6.3
  • pallet-liquidity-mining: v4.4.3
  • pallet-omnipool-liquidity-mining: v2.4.0
  • pallet-otc-settlements: v1.0.5
  • pallet-xyk: v6.6.2
  • primitives: v6.1.0
  • hydradx-adapters: v1.3.8
  • hydradx-runtime: v271.0.0
  • hydradx-traits: v3.9.0

New crates:

  • pallet-amm-support: v1.0.0

Crate versions that have been updated:

  • pallet-lbp: v4.8.6 -> v4.10.0
  • pallet-omnipool: v4.3.6 -> v4.6.0
  • pallet-otc: v2.0.3 -> v2.2.0
  • pallet-route-executor: v2.6.2 -> v2.8.0
  • pallet-stableswap: v4.0.0 -> v4.1.0

Runtime version has not been increased.

Roznovjak and others added 30 commits November 5, 2024 13:48
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	pallets/lbp/Cargo.toml
#	pallets/omnipool/Cargo.toml
#	pallets/otc/Cargo.toml
#	pallets/route-executor/Cargo.toml
#	pallets/stableswap/Cargo.toml
# Conflicts:
#	Cargo.lock
#	pallets/omnipool/Cargo.toml
# Conflicts:
#	Cargo.lock
#	pallets/stableswap/Cargo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify all trading events into the one generic one
4 participants